﻿using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace Metro.Kashikoi.ServiceContract.Location
{
    /// <summary>
    /// This class defines the stock area.
    /// </summary>
    [DataContract(IsReference = true)]
    public class StockArea : Region
    {
        /// <summary>
        /// Gets or sets the unit.
        /// </summary>
        /// <value>
        /// The unit.
        /// </value>
        [NotMapped]
        public Unit Unit
        {
            get { return this.Parent as Unit; }
            set { this.Parent = value; }
        }
    }
}
